package com.literature.search.file.controller;

import com.literature.search.core.entity.R.AjaxJson;
import com.literature.search.core.entity.dto.BasePageDTO;
import com.literature.search.file.service.UploadRecordService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.validation.Valid;

/**
 * @ClassName UploadRecordController
 * @Description TODO
 * @Author abin
 * @Date 2023/3/29 19:48
 * @Version 1.0
 */
@Api(tags = "用户上传记录管理")
@RestController
@RequestMapping("/uploadRecord")
public class UploadRecordController {

    @Resource
    private UploadRecordService uploadRecordService;

    @PostMapping("/findUploadRecordByUserId")
    @ApiOperation(value = "用户查看自己的上传记录",notes = "用户查看自己的上传记录")
    public AjaxJson findDownloadRecordByUserId(@ModelAttribute("pageParams") @Valid BasePageDTO page){
        return uploadRecordService.findUploadRecordByUserId(page);
    }

}
